<?php
/**
 * The main template file.
 *
 * This is  template file in a crazyminecraft.net
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 * Learn more: http://crazyminecraft.net
 *
 * @package WordPress
 * @subpackage crazyminecraft.net
 * @since crazyminecraft.net 1.0
 */
?>
<?php get_header(); ?>
<?php 
	
	if ( have_posts() ) :

		while ( have_posts() ) : the_post();
			setPostViews(get_the_ID());
?>
<div class="post-<?php the_ID();?> post type-post status-publish format-standard hentry category-uncategorized" id="post-<?php the_ID();?>">
	<h1 class="entry-title entry-title-detail">
		<?php the_title()?>
	</h1>
	<div class="postAuthor">by <?php the_author_posts_link(); ?> on <?php the_time('l, F jS, Y') ?> | <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?> | <strong><?php echo getPostViews(get_the_ID()); ?></strong></div>
	<div class="ads468x60"><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- 468x60 crazyminecraft.net [Single - Author] -->
<ins class="adsbygoogle"
     style="display:inline-block;width:468px;height:60px"
     data-ad-client="ca-pub-8183633048366349"
     data-ad-slot="8256736465"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
	<div class="entry entry-detail">
		<?php the_content();?>
		<div class="ads336x280">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- 336x280 www.crazyminecraft.net [Single - End post] -->
<ins class="adsbygoogle"
     style="display:inline-block;width:336px;height:280px"
     data-ad-client="ca-pub-8183633048366349"
     data-ad-slot="7977534868"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
		</div>
		<div class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> <?php edit_post_link('| Edit', '', ' '); ?></div>
	</div>
	<?php comments_template( '', true ); ?>

</div>
<?php
endwhile;
else :
	 echo "Sorry, no posts matched your criteria";
endif;
?>
</div><!-- /im-mainContent -->
<?php get_sidebar('right');?>
<?php get_footer();?>